<script setup>
// 路由组件无需额外配置
</script>

<template>
  <div id="app">
    <!-- 路由视图，所有页面将在这里显示 -->
    <router-view />
  </div>
</template>

<style>
/* CSS 变量定义 - 项目统一颜色方案 */
:root {
  --color-primary: #8B7355;      /* 大地棕 */
  --color-secondary: #A3C4BC;    /* 鼠尾草绿 */
  --color-surface: #FAF8F5;      /* 温暖米色 */
  --color-surface-variant: #F3F1ED;
  --color-outline: rgba(139, 115, 85, 0.12);
  --color-text: #333;
  --color-text-secondary: #666;
  --color-text-muted: #999;
}

/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

#app {
  min-height: 100vh;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 通用动画 */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.3s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

.slide-enter-active,
.slide-leave-active {
  transition: transform 0.3s ease;
}

.slide-enter-from {
  transform: translateX(-100%);
}

.slide-leave-to {
  transform: translateX(100%);
}
</style>
